<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>查看数据源</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<jsp:include page="../include.jsp" />
</head>
<body class="input">
<div class="bar">查看数据源</div>
<div class="body">
<table class="inputTable tabContent">
	<tr>
		<th>名称:</th>
		<td>${datasourceinfo.name}</td>
	</tr>
	<tr>
		<th>URL:</th>
		<td>${datasourceinfo.url}</td>
	</tr>
	<tr>
		<th>驱动程序:</th>
		<td>${datasourceinfo.driver}</td>
	</tr>
	<tr>
		<th>用户名:</th>
		<td>${datasourceinfo.userName}</td>
	</tr>
	<tr>
		<th>JNDI:</th>
		<td>${datasourceinfo.jndi}</td>
	</tr>
	<tr>
		<th>状态:</th>
		<td>
			<c:choose>
				<c:when test="${datasourceinfo.enable}">
					启用
				</c:when>
				<c:otherwise>
					禁止
				</c:otherwise>
			</c:choose>
		</td>
	</tr>
	<tr>
		<th>线程池:</th>
		<td><a href="viewpool.do?id=${datasourceinfo.poolName}" title="浏览">${datasourceinfo.poolName}</a></td>
	</tr>
</table>
<div class="buttonArea"><input type="button" class="formButton"
	onclick="window.history.back(); return false;" value="返  回" hidefocus />
	<input type="button" class="formButton"
	onclick="testConnection('${datasourceinfo.name}')" value="测试" hidefocus />
</div>
</div>
</body>
</html>